3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
QuickDraw 3D provides routines that you can use to negate (or reverse) vectors. The result of negating a vector is a vector having the same magnitude but the opposite direction as the original vector.
You can use the Q3Vector2D_Negate function to negate a two-dimensional vector.
TQ3Vector2D *Q3Vector2D_Negate (
const TQ3Vector2D *vector2D,
TQ3Vector2D *result);
You can use the Q3Vector3D_Negate function to negate a three-dimensional vector.
TQ3Vector3D *Q3Vector3D_Negate (
const TQ3Vector3D *vector3D,
TQ3Vector3D *result);
Previous | QD3D Book | Overview | Chapter Contents | Next |